﻿using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[XmlInclude(typeof(Performer))]
[XmlInclude(typeof(HumanPerformer))]
[XmlInclude(typeof(PotentialOwner))]
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tResourceRole")]
[XmlRoot("resourceRole", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class ResourceRole : BaseElement
{
    /// <remarks/>
    [XmlElement("resourceAssignmentExpression", typeof(ResourceAssignmentExpression))]
    [XmlElement("resourceParameterBinding", typeof(ResourceParameterBinding))]
    [XmlElement("resourceRef", typeof(XmlQualifiedName))]
    public object[] Items { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("name")]
    public string Name { get; set; } = default!;
}
